<?php

declare (strict_types=1);
namespace App\Model;

/**
 * @property int $id 
 * @property int $is_reservation 
 * @property int $shop_id 
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 * @property string $deleted_at 
 */
class FlyGourmetMealConf extends CloudBase
{
    public $timestamps = true;
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'fly_gourmet_meal_conf';
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = ['id', 'is_reservation', 'shop_id', 'created_at', 'updated_at', 'deleted_at', 'extend'];
    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = ['id' => 'integer', 'is_reservation' => 'integer',
        'consume_type' => 'json',
        'open_time' => 'json',
        'shop_id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];

//    public function getConsumeTypeAttribute($value)
//    {
//        return json_decode(json_decode($value));
//    }
}